package com.peas.platform.module.icims.base.approve.dto;

import com.peas.platform.common.core.annotation.Comment;
import com.peas.platform.common.core.dto.BaseDto;
import com.peas.platform.framework.mybatisplus.annotation.Condition;
import com.peas.platform.framework.mybatisplus.annotation.ConditionOperator;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

// 审批单节点
@Data
@EqualsAndHashCode(callSuper = false)
public class ApproveOrderNodeDto extends BaseDto {

    // 审批单ID
    // 【审批单表】
    @Comment(value = "审批单ID")
    private Long approveOrderId;

    // 审批节点来源
    // 1:审批模版、2:自定义
    // 枚举取值:ApproveNodeSource
    @Comment(value = "审批节点来源", enumType = "ApproveNodeSource")
    @Condition(operator = ConditionOperator.IN)
    private String approveNodeSource;

    // 审批节点编号
    @Comment(value = "审批节点编号")
    private Integer approveNodeNo;

    // 审批节点名称
    @Comment(value = "审批节点名称")
    private String approveNodeName;

    // 审批节点类型
    // 1:用户、2:组织架构、3:角色
    // 枚举取值:ApproveNodeType
    @Comment(value = "审批节点类型")
    @Condition(operator = ConditionOperator.IN)
    private String approveNodeType;

    // 审批节点组织架构ID
    // 【组织架构表】多ID逗号分隔
    @Comment(value = "审批节点组织架构ID")
    private String approveNodeOrgId;

    // 审批节点角色ID
    // 【角色表】多ID逗号分隔
    @Comment(value = "审批节点角色ID")
    private String approveNodeRoleId;

    // 审批节点用户ID
    // 【用户表】多ID逗号分隔
    @Comment(value = "审批节点用户ID")
    private String approveNodeUserId;

    // 代理审批用户ID
    // 【用户表】
    @Comment(value = "代理审批用户ID")
    private Long agentUserId;

    // 是否会签节点
    // 枚举取值:CommonYesNo
    @Comment(value = "是否会签节点", enumType = "CommonYesNo")
    @Condition(operator = ConditionOperator.IN)
    private String isCountersign;

    //Criteria
    private Date createTimeStart;
    private Date createTimeEnd;
    private Date updateTimeStart;
    private Date updateTimeEnd;
}
